<?php
$role = $this->session->userdata('role');
$home = ($role == ROLE_ADMIN)?ADMIN_FOLDER:SHOP_FOLDER;
?>
<div class="row">
    <div class="col-md-12">
        <h1>Người dùng <small>Thông tin tài khoản</small></h1>
        <ol class="breadcrumb">
            <li><a href="<?php echo page_url($home); ?>"><i class="fa fa-dashboard"></i> Dashboard</a></li>
            <li class="active"><i class="fa fa-table"></i> Thông tin tài khoản</li>
        </ol>
    </div>
</div>
<div class="clearfix"></div>

<div class='row'>
    <div class="col-md-12" id="flg"></div>
    <div id="template-alert" class="hidden">
        <div class='alert fade in'>
            <button type='button' class='close' data-dismiss='alert' aria-hidden='true'>×</button>
            <div id='msg'></div>
        </div>
    </div>
</div>
<div class="clearfix"></div>

<ul id="tabs" class="nav nav-tabs" data-tab='tabs'>
    <li class="active"><a href="#userpane"><i class="fa fa-user"></i> Thông tin người dùng</a></li>

    <?php if($role==ROLE_ADMIN) { ?>
    <li><a href="#systemdetailpane"><i class="fa fa-sitemap"></i> Hệ thống</a></li>
    <?php } ?>

    <?php if($role == ROLE_SHOP_OWNER) { ?>
    <li><a href="#shoppane"><i class="fa fa-shopping-cart"></i> Thông tin gian hàng</a></li>
    <li><a href="#shopdetailpane"><i class="fa fa-desktop"></i> Giao diện gian hàng</a></li>
    <?php } ?>
</ul>

<div id="my-tab-content" class="tab-content mgt15">
    <?php
    $this->load->view('backend/user/tab/user-info.html.php');
    if($role == ROLE_ADMIN) {
        $this->load->view('backend/user/tab/system-info.html.php');
    }
    if($role == ROLE_SHOP_OWNER) {
        $this->load->view('backend/user/tab/shop-info.html.php');
        $this->load->view('backend/user/tab/shop-theme.html.php');
    }
    ?>
</div>